import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;

public class DoctorsOrdersGUI extends JPanel{
    public DoctorsOrdersGUI() {
        setLayout(new BorderLayout(0, 0));
        
        JPanel panel = new JPanel();
        add(panel, BorderLayout.SOUTH);
        
        JButton btnBack = new JButton("Back");
        panel.add(btnBack);
        
        JPanel panel_1 = new JPanel();
        add(panel_1, BorderLayout.CENTER);
        panel_1.setLayout(new BorderLayout(0, 0));
        
        JPanel panel_2 = new JPanel();
        panel_1.add(panel_2, BorderLayout.SOUTH);
        
        JButton btnIncomeStatement = new JButton("Income Statement");
        panel_2.add(btnIncomeStatement);
        
        JButton btnHealthHistory = new JButton("Health History");
        panel_2.add(btnHealthHistory);
        
        JPanel panel_3 = new JPanel();
        panel_1.add(panel_3, BorderLayout.NORTH);
        panel_3.setLayout(new BorderLayout(0, 0));
        
        JLabel lblPatientName = new JLabel("Patient's Name Doctors Orders");
        panel_3.add(lblPatientName);
        
        JPanel panel_4 = new JPanel();
        panel_1.add(panel_4, BorderLayout.CENTER);
        GridBagLayout gbl_panel_4 = new GridBagLayout();
        gbl_panel_4.columnWidths = new int[]{0, 0, 0};
        gbl_panel_4.rowHeights = new int[]{0, 0, 0, 0, 0, 0, 0, 0};
        gbl_panel_4.columnWeights = new double[]{0.0, 1.0, Double.MIN_VALUE};
        gbl_panel_4.rowWeights = new double[]{1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, Double.MIN_VALUE};
        panel_4.setLayout(gbl_panel_4);
        
        JLabel lblPrescription = new JLabel("Prescription:");
        GridBagConstraints gbc_lblPrescription = new GridBagConstraints();
        gbc_lblPrescription.insets = new Insets(0, 0, 5, 5);
        gbc_lblPrescription.gridx = 0;
        gbc_lblPrescription.gridy = 0;
        panel_4.add(lblPrescription, gbc_lblPrescription);
        
        JTextPane textPane = new JTextPane();
        GridBagConstraints gbc_textPane = new GridBagConstraints();
        gbc_textPane.insets = new Insets(0, 0, 5, 0);
        gbc_textPane.fill = GridBagConstraints.BOTH;
        gbc_textPane.gridx = 1;
        gbc_textPane.gridy = 0;
        panel_4.add(textPane, gbc_textPane);
        
        JLabel lblLabWork = new JLabel("Lab Work:");
        GridBagConstraints gbc_lblLabWork = new GridBagConstraints();
        gbc_lblLabWork.insets = new Insets(0, 0, 5, 5);
        gbc_lblLabWork.gridx = 0;
        gbc_lblLabWork.gridy = 2;
        panel_4.add(lblLabWork, gbc_lblLabWork);
        
        JTextPane textPane_1 = new JTextPane();
        GridBagConstraints gbc_textPane_1 = new GridBagConstraints();
        gbc_textPane_1.insets = new Insets(0, 0, 5, 0);
        gbc_textPane_1.fill = GridBagConstraints.BOTH;
        gbc_textPane_1.gridx = 1;
        gbc_textPane_1.gridy = 2;
        panel_4.add(textPane_1, gbc_textPane_1);
        
        JLabel lblFollowUpInstructions = new JLabel("Follow Up Instructions");
        GridBagConstraints gbc_lblFollowUpInstructions = new GridBagConstraints();
        gbc_lblFollowUpInstructions.insets = new Insets(0, 0, 5, 5);
        gbc_lblFollowUpInstructions.gridx = 0;
        gbc_lblFollowUpInstructions.gridy = 4;
        panel_4.add(lblFollowUpInstructions, gbc_lblFollowUpInstructions);
        
        JTextPane textPane_2 = new JTextPane();
        GridBagConstraints gbc_textPane_2 = new GridBagConstraints();
        gbc_textPane_2.insets = new Insets(0, 0, 5, 0);
        gbc_textPane_2.fill = GridBagConstraints.BOTH;
        gbc_textPane_2.gridx = 1;
        gbc_textPane_2.gridy = 4;
        panel_4.add(textPane_2, gbc_textPane_2);
        
        JLabel lblOtherInstuctions = new JLabel("Other Instuctions");
        GridBagConstraints gbc_lblOtherInstuctions = new GridBagConstraints();
        gbc_lblOtherInstuctions.insets = new Insets(0, 0, 0, 5);
        gbc_lblOtherInstuctions.gridx = 0;
        gbc_lblOtherInstuctions.gridy = 6;
        panel_4.add(lblOtherInstuctions, gbc_lblOtherInstuctions);
        
        JTextPane textPane_3 = new JTextPane();
        GridBagConstraints gbc_textPane_3 = new GridBagConstraints();
        gbc_textPane_3.fill = GridBagConstraints.BOTH;
        gbc_textPane_3.gridx = 1;
        gbc_textPane_3.gridy = 6;
        panel_4.add(textPane_3, gbc_textPane_3);
    }

}
